//
//  QTBusinessCommentCell.m
//  QTLifeCircle
//
//  Created by 王琼 on 17/1/17.
//  Copyright © 2017年 徐腾. All rights reserved.
//

#import "QTBusinessCommentCell.h"
#import <UIImageView+WebCache.h>
@interface QTBusinessCommentCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *photoImageView;
@property (weak, nonatomic) IBOutlet UIImageView *scoreImageView;
@property (weak, nonatomic) IBOutlet UILabel *commentLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;


@end
@implementation QTBusinessCommentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(QTUserCommentModel *)model
{
    _model = model;
    //店铺图片地址
    NSURL* URL = [NSURL URLWithString:model.photo];
    [self.photoImageView sd_setImageWithURL:URL placeholderImage:[UIImage imageNamed:@"no"]];
    self.nameLabel.text = model.name;
    self.scoreImageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"star_%@",model.score]];
    self.timeLabel.text = model.time;
    self.commentLabel.text = model.comment;
}

@end

/*
 @property(nonatomic, copy)NSString *name;
 @property(nonatomic, copy)NSString *photo;
 @property(nonatomic, copy)NSString *time;
 @property(nonatomic, copy)NSString *comment;
 @property(nonatomic, copy)NSString *score;
 */
